﻿@page "/login"

<div class="container col-6 offset-3 mt-5 border p-3">
    <EditForm Model="Model" class="p-5" OnValidSubmit="SubmitAsync">
        <DataAnnotationsValidator />
        <div class="row mb-2">
            <label class="col-form-label col-2">账号</label>
            <div class="col-10">
                <InputText @bind-Value="Model.UserName" class="form-control" />
            </div>
            <div class="offset-2">
                <ValidationMessage For="()=>Model.UserName" />
            </div>
        </div>
        <div class="row mb-2">
            <label class="col-form-label col-2">密码</label>
            <div class="col-10">
                <InputText type="password" @bind-Value="Model.Password" class="form-control" />
            </div>
            <div class="offset-2">
                <ValidationMessage For="()=>Model.Password" />
            </div>
        </div>
        <button class="btn btn-primary offset-2" type="submit">登录</button>
    </EditForm>
</div>

